import bigEachCol from './orderList/bigEachCol'

// 表格相关配置
export default {

  orderTypeSwitch(num,goods_type) {
    let out = '';
    switch (parseInt(num)) {
      case 1:
        out = '专利申请';
        break;
      case 2:
        if(goods_type==209){
          out = '担保注册';
        }else{
          out = '商标注册';
        }
        
        break;
      case 3:
        out = '软件著作';
        break;
      case 4:
        out = '美术著作';
        break;
      case 5:
        out = '单次购买';
        break;
      case 6:
        out = '包年购买';
        break;
      case 7:
        out = '商标服务';
        break;
      case 8:
        out = '专利服务';
        break;
      case 9:
      case 10:
      case 11:
        out = ' ';
        break;
    }
    return out;
  },
  orderTypeIcon(num) {
    let out = '';
    switch (parseInt(num)) {
      case 1:
        out = 'iconzhuanli';
        break;
      case 2:
        out = 'iconshangbiaorenzheng';
        break;
      case 3:
        out = 'iconruanjiankaifabao';
        break;
      case 4:
        out = 'iconzhuzuoquanxinxi';
        break;
      case 5:
        out = 'icontongjifenxi';
        break;
      case 6:
        out = 'icontongjifenxi';
        break;
      case 7:
        out = 'iconshangbiaorenzheng';
        break;
      case 8:
        out = 'iconzhuanli';
        break;
      case 9:
        out = 'iconrenminbizhuanyongzhanghu';
        break;
      case 10:
        out = 'iconguanli1';
        break;

    }
    return out;
  },
  tableCol(that) {
    let { order_type } = that;
    let out = '';
    switch (parseInt(order_type)) {
      case 0:
        out = $app.columns0(that);
        break;
      case 1:
        out = $app.columns1(that);
        break;
      case 2:
        out = $app.columns2(that);
        break;
      case 3:
        out = $app.columns3(that);
        break;
      case 5:
        out = $app.columns5(that);
        break;
      case 6:
        out = $app.columns5(that);
        break;
    }
    return out;
  },


  //全部
  columns0(that) {
    let out = [
      bigEachCol['zeroXu'](that),
      bigEachCol['zeroA'](that),
      bigEachCol['zeroB'](that),
      bigEachCol['zeroC'](that),
      bigEachCol['zeroD'](that),
      bigEachCol['zeroE'](that),
      bigEachCol['zeroF'](that),
      bigEachCol['baseBtn'](that)
    ];

    return out;
  },

  //专利申请
  columns1(that) {
    let out = [
      bigEachCol['zeroXu'](that),
      bigEachCol['zeroA'](that),
    ];

    // if(!$app.isMinScreen()){
    //   out.push(
    //     bigEachCol['zeroB'](that,100),
    //   );
    // }

    out.push(
      bigEachCol['zeroG'](that),
      bigEachCol['zeroH'](that),
      bigEachCol['zeroI'](that)
    );
    out.push(
      bigEachCol['zeroC'](that),
      // bigEachCol['zeroD'](that),
      bigEachCol['zeroE'](that),
      bigEachCol['zeroK'](that),
      bigEachCol['baseBtn'](that)
    );
    return out;
  },
  //商标注册
  columns2(that) {
    
    let out = [

      bigEachCol['zeroXu'](that),
      bigEachCol['zeroL'](that),
      bigEachCol['zeroM'](that),
    ];
    if(!$app.isMinScreen()){
      out.push(
        bigEachCol['zeroB'](that,100),
      );
    }

    out.push(
      bigEachCol['zeroN'](that),
    );
    if(!$app.isMinScreen()){
      out.push(
        bigEachCol['zeroO'](that),
      );
    }
    out.push(
      bigEachCol['zeroC'](that),
      // bigEachCol['zeroD'](that),
      bigEachCol['zeroE'](that),
    );
    out.push(
      bigEachCol['zeroR'](that),
      bigEachCol['baseBtn'](that)
    );
    return out;
  },
  //版权订单
  columns3(that) {
    let out = [
      bigEachCol['zeroXu'](that),
      bigEachCol['zeroA'](that),
    ];
    if(!$app.isMinScreen()){
      out.push(
        bigEachCol['zeroB'](that,80),
      );
    }
    out.push(
      bigEachCol['zeroS'](that),
      bigEachCol['zeroT'](that),
      bigEachCol['zeroC'](that),
    );
    out.push(
      // bigEachCol['zeroD'](that),
      bigEachCol['zeroE'](that),
    );

    out.push(
      bigEachCol['zeroU'](that),
      bigEachCol['baseBtn'](that)
    );
    return out;
  },

  //商标分析报告
  columns5(that) {
    let out = [
      bigEachCol['zeroXu'](that),
      bigEachCol['zeroA'](that),
    ];
    if(!$app.isMinScreen()){
      out.push(
        bigEachCol['zeroB'](that),
      );
    }


    out.push(
      bigEachCol['zeroV'](that),
      bigEachCol['zeroW'](that),
      // bigEachCol['zeroD'](that),
      bigEachCol['zeroE'](that),
    );

    out.push(
      bigEachCol['zeroF'](that),
      bigEachCol['baseBtn'](that)
    );

    return out;
  }


};